package com.authine.cloudpivot.app.openapi.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 本地调测所需参数的定义
 *
 * @author lifuchun
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("本地调测参数")
public class LocalDebugHeaderParam implements Serializable {

    @ApiModelProperty("用户登录ID")
    private String loginId;

    @ApiModelProperty("用户名")
    private String loginName;

    @ApiModelProperty("请求ID")
    private String requestId;

    @ApiModelProperty("调测请求ID")
    private String debugRequestId;

    @ApiModelProperty(value = "服务名", notes = "跨应用调用的时候,可留空")
    private String serviceName;

    @Override
    public String toString() {
        return "LocalDebugHeaderParam{" +
                "loginId='" + loginId + '\'' +
                ", loginName='" + loginName + '\'' +
                ", requestId='" + requestId + '\'' +
                ", DebugRequestId='" + debugRequestId + '\'' +
                ", serviceName='" + serviceName + '\'' +
                '}';
    }
}